import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:myflutterproject/basematerialwidgetsdemo.dart';
import 'package:myflutterproject/routes.dart';

class Inputwidgets extends StatelessWidget{
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('表单 Widgets'),
        centerTitle: true,
      ),
      body: Column(
        mainAxisAlignment: MainAxisAlignment.center,
        children: <Widget>[
          ItemButton('Form', formdemo),
          ItemButton('FormField(表单控件，此空间包含表单的状态，方便更新UI,通常情况下不会直接使用FormField,而是使用TextFormField)', textfielddemo),
          ItemButton('RawKeyboardListener(按键监听事件)', ''),

        ],
      ),
    );
  }

}